Scene-operation method, electronic device, and non-transitory computer readable medium

ABSTRACT

Disclosed in the present application are a scene-operation method, an electronic device, and a non- transitory computer readable medium, relating to the field of the Internet of Things. The method includes: acquiring a plurality of scenes corresponding to a scene-trigger condition; acquiring a priority of each scene of the plurality of scenes; sorting the plurality of scenes according to the priority of each scene, and obtaining an execution sequence for the plurality of scenes; and executing the plurality of scenes according to the execution sequence.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of International Application No.PCT/CN2019/087312, filed on May 16, 2019, the entire disclosure of whichis incorporated herein by reference.

TECHNICAL FIELD

The disclosure relates to the field of Internet of Things, and morespecifically, to a scene-operation method, an electronic device, and anon-transitory computer readable medium.

BACKGROUND

Smart Home is a residential platform, which integrates facilitiesrelated to home life by using integrated wiring technology, networkcommunication technology, security technology, automatic controltechnology, audio and video technology, and constructs an efficientmanagement system for residential facilities and family scheduleaffairs, thereby improving the safety, convenience, comfort and artistryof home, and achieving an environment-friendly and energy-saving livingenvironment.

The scene includes occasion and environment, that is, the environment ofa particular occasion. The meaning of scene control in a smart homerefers to the control of lights, background music and other householdsmart devices according to specific needs for a specific occasion, forenabling users to obtain the best experience. However, currently, thescenes are generally executed sequentially according to the time definedby the scenes, and the setting of the scene is single.

SUMMARY

The disclosure proposes a scene-operation method, an electronic device,and a non-transitory computer readable medium to improve the defectsmentioned above.

In an aspect, the embodiments of the disclosure provide ascene-operation method, including: acquiring a plurality of scenescorresponding to a scene-trigger condition; acquiring a priority of eachscene of the plurality of scenes; sorting the plurality of scenesaccording to the priority of each scene, and obtaining an executionsequence for the plurality of scenes; and executing the plurality ofscenes according to the execution sequence.

In another aspect, the embodiments of the disclosure further provide anelectronic device, including: one or more processors; a memory; and oneor more application programs stored in the memory. The one or moreapplication programs, when executed by the one or more processors, areconfigured to implement the above method.

In further another aspect, the embodiments of the disclosure furtherprovide a non-transitory computer readable medium. The non-transitorycomputer readable medium stores program codes which, when called andexecuted by a processor, causes the processor to perform the abovemethod.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to explain the technical solutions in the embodiments of thedisclosure more clearly, the drawings needed in the description of theembodiments will be briefly introduced below. Obviously, the drawings inthe following description are only some embodiments of the disclosure.For those of ordinary skill in the art, other drawings can be obtainedbased on these drawings without paying creative work.

FIG. 1 shows an application network environment of a scene-operationmethod and apparatus according to an embodiment of the disclosure;

FIG. 2 shows an application network environment of a scene-operationmethod and apparatus according to another embodiment of the disclosure;

FIG. 3 shows a flowchart of a scene-operation method according to anembodiment of the disclosure;

FIG. 4 shows a flowchart of a scene-operation method according toanother embodiment of the disclosure;

FIG. 5 shows a flowchart of a scene-operation method according to afurther embodiment of the disclosure;

FIG. 6 shows a schematic diagram of a setting interface of the scenepriority proposed in an embodiment of the disclosure;

FIG. 7 shows a flowchart of a scene-operation method according tofurther another embodiment of the disclosure;

FIG. 8 shows a flowchart of a scene-operation method according to stillfurther another embodiment of the disclosure;

FIG. 9 shows a block diagram of a scene-operation apparatus according toan embodiment of the disclosure;

FIG. 10 shows a block diagram of a second acquisition unit in ascene-operation apparatus according to an embodiment of the disclosure;

FIG. 11 shows a block diagram of a second acquisition unit in ascene-operation apparatus according to another embodiment of thedisclosure;

FIG. 12 shows a block diagram of an electronic device according to anembodiment of the disclosure; and

FIG. 13 shows a storage medium for storing or carrying program codesconfigured for implementing the scene-operation methods according to theembodiments of the disclosure, according to an embodiment of thedisclosure.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

To enable those of ordinary skill in the art to better understand thesolutions of the disclosure, the technical solutions in the embodimentsof the disclosure will be described clearly and completely withreference to the drawings in the embodiments of the disclosure.

Internet of Things is a network concept of extending and expanding itsclient to any object-to-object for information exchange andcommunication on the basis of the “Internet concept”. With thedevelopment of Internet of Things technology, some scenarios can beconfigured in the Internet of Things system. For the configuredscenario, multiple controlled devices may be involved, and the multiplecontrolled devices have a certain linkage relationship and can worktogether.

The controlled device can be projector, projection screen, smart light,smart socket, human sensor, door and window sensor, wireless switch, airconditioning partner, smoke alarm, smart curtain motor, air purifier,smart speaker, and other mobile terminals. In an implementation, in thesmart device system shown in FIG. 1, the electronic device 100 thatplays a control role can realize data interaction with the controlleddevice 99 by directly establishing a wireless connection with therouter. Furthermore, the electronic device 100 can also realize datainteraction with the controlled device 99 through the data link betweenthe cloud and the router after establishing a connection with the cloud.In another implementation, in the smart device system shown in FIG. 2,the controlled device 99 can establish a wireless connection with therouter through the gateway 98. The data interaction may include themobile terminal sending control instructions to the controlled device,and the controlled device returning status information or instructionexecution results to the mobile terminal. The data interaction betweenthe mobile terminal and the controlled device can be triggered by aclient installed in the mobile terminal.

Specifically, a client is installed in the electronic device 100, andthe client may be an application corresponding to a certain devicemanufacturer and can control multiple controlled devices correspondingto the device manufacturer. In addition, since the manufacturer'sproducts include multiple devices, the client can be used as a controlarchitecture for the multiple devices corresponding to the manufacturer,and the plug-in of each device needs to be installed for the control andinteraction function of each device. As shown in FIG. 1, assume that thetwo controlled devices 99 are from the same device manufacturer, theycan be controlled by the client. However, since the two controlleddevices 99 are products of different types (for example, one is a TV ofBrand x, and the other is a refrigerator of Brand x), or products ofdifferent models of the same type (for example, one is a m1-model TV ofBrand x, and the other is a m2-model TV of Brand x), in order to controlthe two devices, the plug-ins corresponding to respective devices needto be installed separately. As shown in FIG. 1 and FIG. 2, the controlplug-in 1 and the control plug-in 2 control two different controlleddevices, respectively.

By setting multiple devices to perform some operations sequentially in acertain order, a scene can be constructed, that is, the meaning of thescene is that at least one smart device performs a certain series ofoperations when acquiring certain data as a trigger condition. Bysetting multiple scenes, users can operate multiple smart devices moreconveniently, and the operation of smart devices is more intelligent andautomatic.

However, the inventor found in research that at present, in a certainscene-trigger condition, such as home arriving, multiple scenes can betriggered, and the execution sequence for these scenes is often set tobe executing according to a pre-defined time sequence. This executionmode is single, and it does not take into account the actual use of theuser.

Therefore, to overcome the above defects, the embodiments of thedisclosure provide a scene-operation method, which is applied to a smartdevice system. The execution subject of the method may be an electronicdevice, a gateway or a server in the smart device system. In animplementation, the execution subject of the method in the embodimentsof the disclosure is an electronic device. Specifically, as shown inFIG. 3, the method includes: S301 to S304.

S301: acquiring a plurality of scenes corresponding to a scene-triggercondition.

The scene-trigger condition is a pre-defined condition that can triggera plurality of scenes of the smart device system. Specifically, thescene-trigger condition may be environmental information, time, thestate of the smart device, the state of the home, and the like. Eachscene-trigger condition corresponds to a plurality of scenes, that is, ascene correspondence is pre-stored in the electronic device or theserver, and the scene correspondence includes multiple scene-triggerconditions and at least one scene corresponding to each scene-triggercondition.

When the user inputs a scene-trigger condition through the client of theelectronic device, or the electronic device acquires a scene-triggercondition through other methods, the electronic device can find aplurality of scenes corresponding to the acquired scene-triggercondition according to the correspondence. Specifically, thescene-trigger condition may be triggered by the electronic deviceitself, or by data input from an external device. For example, thescene-trigger condition is ambient light, specifically, it may be thatcertain scenes are triggered in the evening.

In this way, it is possible to install multiple light sensors in theplace where the user lives. The multiple light sensors send the detectedlight intensity to the electronic device, and the electronic devicedetermines whether it is the evening time according to the acquiredlight intensity, if it is, it is determined that the scene-triggercondition is acquired, and then, the electronic device determines aplurality of scenes corresponding to the scene-trigger condition.

In addition, the scene-trigger condition may also be determined by thestate of the electronic device itself For example, the electronic devicedetects its own system time, if the system time is within a specifiedtime period, it is determined that the scene-trigger condition isacquired.

It may also be that the electronic device determines whether thescene-trigger condition is acquired according to both its own state andinformation input by the external device. For example, taking the sceneof a user arriving home as an example, a detection device is set at thedoor of the room, and the detection device can detect whether the dooris in an open state or in a closed state. For example, the detectiondevice may be a displacement sensor or an infrared sensor. The detectiondevice is set at the door lock, and the collected information isdifferent when the door lock is closed or opened, in this way, thedetection device can determine whether the door lock is open, if it isdetermined that the door lock is open, the detection device will send adoor lock open instruction to the electronic device, then the electronicdevice detects its own system time, if the system time is within thespecified time period, it is determined that the scene-trigger conditionis acquired.

Assume that there are four scenes triggered by the scene-triggercondition, namely scene A, scene B, scene C and scene D. And each scenecorresponds to multiple operations.

S302: acquiring a priority of each scene of the plurality of scenes.

In an implementation, the priority of each scene may be acquired by: theelectronic device displaying the plurality of scenes corresponding tothe scene-trigger condition; and the user setting a priority for eachscene according to the displayed scene information of the plurality ofscenes, where the priorities of different scenes can be different. Thescene information is description information of the scenes, and thedescription information of a scene includes an overview of the generalfunctions of the scene. For example, the description information of ascene can be an explanation of multiple operations corresponding to thescene, such as “turning on the blowing mode of the air conditioner, andthen opening the curtain”, or “turning on the TV, and then diming thelights”. The user can understand the function of a scene according tothe description information of the scene, so as to set the priorities ofthe plurality of scenes according to their own needs.

In another implementation, the priority of each scene may be setaccording to the operation history of the user. For details, pleaserefer to the subsequent embodiments.

S303: sorting the plurality of scenes according to the priority of eachscene, and obtaining an execution sequence for the plurality of scenes.

After the priority of each scene is acquired, the plurality of scenes issorted according to the priority of each scene to obtain the executionsequence. In an implementation, it may be that: the higher the priorityof the scene, the higher the order of the scene in the executionsequence. In another implementation, it may also be that: the higher thepriority of the scene, the lower the order of the scene in the executionsequence. It is also possible that some scenes are sorted according totheir priorities while others are sorted randomly.

For example, assume the scenes corresponding to the scene-triggercondition are scene A, scene B, scene C, scene D and scene E. Thepriorities of the four scenes are the priority of scene A being J1, thepriority of scene B being J3, the priority of scene C being J4, thepriority of scene D being J2, and the priority of scene E being J5. Thepriorities are sorted in a descending order as: J1, J2, J3, J4, J5. Inother words, scene A has the highest priority, sequentially followed byscene D, scene B, scene C and scene E.

Then, the above five scenes can be sorted according to the strategythat: the higher the priority of the scene, the higher the order of thescene in the execution sequence, and the obtained execution sequence is:scene A>scene D>scene B>scene C>scene E. In addition, the above fivescenes can be sorted according to the strategy that: the higher thepriority of the scene, the lower the order of the scene in the executionsequence, and the obtained execution sequence is: scene E>scene C>sceneB>scene D >scene A. In addition, the above five scenes can be sortedaccording to the strategy of sorting some scenes according to theirpriorities and randomly sorting other scenes, and the obtained executionsequence is: scene A>scene D>scene E>scene B>scene C, where the firsttwo scenes are sorted according to the strategy that: the higher thepriority of the scene, the higher the order of the scene in theexecution sequence, while the last three scenes are sorted randomly.

S304: executing the plurality of scenes sequentially according to theexecution sequence.

Each scene includes multiple operations, and each operation correspondsto a smart device. Therefore, when executing a scene, it is necessary tosend respective operation instructions to respective smart devices inthe scene according to the predefined operations of the scene. Then,each smart device executes the corresponding operation according to theoperation instruction.

After determining the execution sequence for the plurality of scenes,control instructions are sequentially sent to the corresponding smartdevices according to the execution sequence for the scenes. In animplementation, the electronic device generates a plurality of operationinstructions sequentially, according to the execution sequence for theplurality of scenes and respective operations of respective smartdevices in each scene, and sends the operation instructions to thecorresponding smart devices sequentially. Specifically, the sendingmethod may be that the electronic device sends the operationinstructions to the manufacturer server corresponding to the smartdevices through the SDK installed in the electronic device, then themanufacturer server sends the operation instructions to thecorresponding smart devices, and respective smart devices perform thecorresponding operations after acquiring the operation instructions.

The electronic device sending an operation instruction to the deviceserver through a target SDK plug-in may be specific implemented by: theelectronic device acquiring the data encapsulation protocolcorresponding to the device server; encapsulating the operationinstruction into a data packet according to the data encapsulationprotocol; and sending the data packet to the device server through thetarget SDK plug-in.

The data encapsulation protocol is an agreed protocol between the deviceserver and the electronic device, and the specific encapsulationalgorithm is embedded in the SDK plug-in. Specifically, the SDK plug-inincludes an encapsulation interface, the encapsulation interfaceincludes an algorithm module corresponding to the data encapsulationprotocol, and the data to be sent through the interface can encapsulatedaccording to the algorithm module. The electronic device sends theoperation instruction to the SDK plug-in after acquiring the operationinstruction, the SDK plug-in encapsulates the operation instruction intoa data packet through the encapsulation interface, and the data packetis sent to the device server through the target SDK plug-in.

In addition, in some embodiments, when a smart device is connected tothe network, the user installs the SDK plug-in corresponding to thesmart device in the electronic device. Specifically, the user operatesthe electronic device to download the installation data of thecorresponding SDK plug-in and the same is sent to the electronic device.The electronic device installs the SDK plug-in after acquiring theinstallation data of the SDK plug-in, and sets the corresponding smartdevice identification and the corresponding manufacturer identificationfor the SDK plug-in. After the operation instruction is acquired, thesmart device identification corresponding to the operation instructionis determined, and the manufacturer identification corresponding to thesmart device identification is determined, and then the SDK plug-incorresponding to the target manufacturer identification is determinedaccording to the correspondence between SDK plug-ins in the electronicdevice and manufacturer identifications.

In addition, the way of sending the operation instruction may also bethat the electronic device sends the operation instruction to the servercorresponding to the smart device through the link address. The linkaddress may be a URL address, and the link address corresponds to aserver. Specifically, the server may be a manufacturer servercorresponding to the smart device, and different device identificationscorrespond to different link addresses. For example, the link address isa URL address, and the format of the address is aaaa.com/123, whereaaaa.com is the address corresponding to the server, and /123 is thespecific storage location of the data corresponding to the deviceidentification in the server.

In another implementation, it may also be that the electronic devicesends the execution sequence for the plurality of scenes to the gateway,and the gateway sends control instructions to the corresponding smartdevices sequentially according to the execution sequence for the scenes.Thus, the above SDK may be installed in the gateway. The gateway maysend an operation instruction to the device server by sending theoperation instruction to the target device server through the SDKplug-in, or sending the operation instruction to the target deviceserver through the communication link between the gateway and the deviceserver.

For example, the user clicks on the temperature increase button on theoperation interface corresponding to the air conditioner, then anoperation instruction for increasing the temperature is input, and theoperation instruction carries the smart device identification and thetemperature control parameter. For example, the current temperature is26° C., when the user clicks the temperature increase button once, thetemperature rises by 1° C., and the temperature control parameter is +1°C. The gateway sends the operation instruction to the manufacturerserver, the manufacturer server parses the operation instruction toobtain the smart device identification and the temperature controlparameter, and sends the operation instruction to the smart devicecorresponding to the smart device identification. The smart deviceacquires the temperature control parameter, and adjusts the temperatureof the device according to the temperature control parameter, such asincreasing the temperature by 1° C.

Compared with the related art, the solution provided by this applicationincludes: acquiring a plurality of scenes corresponding to ascene-trigger condition; acquiring a priority of each scene of theplurality of scenes; sorting the plurality of scenes according to thepriority of each scene, and obtaining an execution sequence for theplurality of scenes; and executing the plurality of scenes according tothe execution sequence. Therefore, after determining the scenescorresponding to the scene-trigger condition, the plurality of scenesare no longer executed merely according to a preset sequence, but ratherthe plurality of scenes are executed according to the priorities of thescenes, thereby providing a richer scene execution strategy andincreasing the diversity of scene execution.

In addition, the priority of the scene can be set according to theoperation history of the user. Specifically, FIG. 4 illustrates ascene-operation method according to an embodiment of the disclosure, andthe scene-operation method is applied to a smart device system. In animplementation, the execution subject of the method may be an electronicdevice in the smart device system. Specifically, as shown in FIG. 4, themethod includes: S401 to S406.

S401: acquiring a plurality of scenes corresponding to a scene-triggercondition.

S402: acquiring, in the plurality of scenes, preset operationinstructions of each smart device in each scene.

The description information of each scene is stored in the electronicdevice or in the server corresponding to the electronic device. Thedescription information of a scene includes the operations of respectivesmart devices corresponding to the scene, so that the operationinstructions of each smart device in each scene can be determined afterdetermining the plurality of scenes corresponding to the scene-triggercondition.

In an implementation, the description information of the scenes isstored in the electronic device. The electronic device searches for thedescription information of the scene corresponding to each of theplurality of scenes corresponding to the trigger condition in thelocally stored correspondence between scenes and description informationof the scenes, and parses the description information of the scene todetermine the operation instructions of multiple smart devicescorresponding to the scene.

In another implementation, it may also be that the electronic devicesends an information acquisition request to the server in which thecorrespondence between scenes and description information of the scenesis stored, and the server searches for the description information ofthe scene corresponding to each of the plurality of scenes correspondingto the trigger condition, parses the description information of thescene to determine the operation instructions of multiple smart devicescorresponding to the scene, and returns the determined preset operationinstructions of each smart device in each scene to the electronicdevice.

S403: acquiring historical operation data of each smart device under thescene-trigger condition.

The operations of each smart device operated by the user within acertain period of time can be recorded, and the operation record of theoperated smart device can correspond to the trigger condition. Forexample, taking “the system time of the electronic device reaching 19:30and the door lock being in the open state” as a scene-trigger condition,the electronic device records the user operation data of each smartdevice in this condition, such as turning on the heating function of theair conditioner and setting the temperature to 26°, turning on the TV,closing the curtains, turning on the water heater and setting thetemperature to 45°, turning on the water dispenser, and the like. Theoperation data of these devices can all be recorded and corresponds tothe current scene-trigger condition.

After acquiring smart devices corresponding to the scene in S402, theelectronic device can search for the operation data corresponding to thescene-trigger condition in the above recorded data, and search for thehistorical operation data corresponding to each smart device.

S404: determining the priority of each scene according to the historicaloperation data and the preset operation instructions of each smartdevice.

The historical operation data can reflect the operation habit of theuser in the current scene-trigger condition. the implementation ofdetermining the priority of each scene according to the historicaloperation data and the preset operation instructions of each smartdevice may be determining the usage status of each smart deviceaccording to the historical operation data of each smart device. Forexample, if the user repeatedly operates the air conditioner in thetrigger condition of arriving home, and the number of operationscorresponding to the air conditioner is at most and the operation timeis long enough, the priority of the scene including the operation of theair conditioner in the plurality of scenes corresponding to the currentscene-trigger condition can be set to be the highest, and then thepriorities of other scenes are determined according to the number orduration of the user operations on other devices.

In another implementation, the specific implementation of determiningthe priority of each scene according to the historical operation dataand the preset operation instructions of each smart device may be:acquiring an operation scheme of a user on each smart device under thescene-trigger condition according to the historical operation data ofeach smart device; matching the operation scheme with the presetoperation instructions of each smart device in each scene, and obtainingsimilarity between each scene and the operation scheme; and determiningthe priority of each scene according to the similarity of each scene.

After acquiring the historical operation data of each smart device ineach of the plurality of scenes corresponding to the scene-triggercondition, the electronic device counts the operation instruction andoperation time point of the user on each smart device under thescene-trigger condition, so as to determine the operation scheme underthe scene-trigger condition. The operation scheme includes the operationinstructions and operation time sequence of each smart device. Forexample, the operation scheme includes turning on the main light in theliving room, turning on the heating mode of the air conditioner andsetting the temperature to 26°, turning on the TV, turning on the waterdispenser, and drawing the curtain. In addition, the operationinstructions of the multiple smart devices in the above operation schemeare executed in a certain order.

In the plurality of scenes corresponding to the scene-trigger condition,each scene includes the operation instructions of respective smartdevices. For example, the plurality of scenes include scene A, scene Band scene C. The operations in scene A include operation 1 and operation2, the operations in scene B include operation 3 and operation 4, andthe operations in scene C include operation 5 and operation 6.

The operation scheme is matched with the preset operation instructionsof each smart device in each scene to obtain the similarity between eachscene and the operation scheme. In an implementation, a similarity scoremay be set for each scene, and each scene may be assigned a scoreaccording to the operation scheme and the operation instructions of eachscene. Specifically, it may be that the scene is assigned a first scoreif the smart device corresponding to the operation instruction appearsin the operation scheme, if it does not appear, no points will beassigned. In addition, if the order of the operation of thecorresponding smart device is higher in the operation scheme, the morepoints will be assigned. In this way, the score of each scene can bedetermined, and the higher the score, the higher the similarity.

In addition, if the scores of two scenes are the same, additional pointscan be assigned according to the number of operation instructions ineach scene. Specifically, the more operation instructions in the scene,the higher the additional score may be assigned, so that the scene withmore operation instructions can be executed first, which enables theuser to preferentially operate more devices, thereby quickly entering acomfortable environment. In addition, it may also be that the feweroperation instructions in the scene, the higher the additional pointsassigned, so that the scene can be executed quickly. For example, sceneA includes operation 1, operation 2, and operation 3, scene B includesoperation 4 and operation 5, and the operation scheme acquired accordingto the historical operation data includes operation 11 and operation 22,where operation 11 and operation 22 respectively correspond to operation2 and operation 3 in scene A, and operation 11 and operation 22respectively correspond to operation 4 and operation 5 in scene B, thusthe scores of scene A and scene B are the same. Then, since scene Afurther includes operation 3, scene A is assigned additional points,which causes the score of scene A being higher than that of scene B. Inother words, the similarity of scene A is higher than the similarity ofscene B.

The priority of the scene is determined according to the similarity ofthe scene. In an implementation, the higher the similarity of the scene,the higher the priority. For example, the plurality of scenes determinedby the current scene-trigger condition are scene A, scene B, scene C,scene D and scene E. The five scenes are ranked in the order ofsimilarity from largest to smallest as: scene A>scene D>scene B>sceneC>scene E, then the priorities of the five scenes is determined as:scene A>scene D>scene B>scene C>scene E.

S405: sorting the plurality of scenes according to the priority of eachscene, and obtaining an execution sequence for the plurality of scenes.

S406: executing the plurality of scenes sequentially according to theexecution sequence.

For parts that are not described in detail in the above steps, referencemay be made to the foregoing embodiments, and details are not repeatedherein.

In addition, the determination of the priority mentioned above can alsobe set by the user, or the user sets the priorities of some scenes, andthe priorities of other scenes are determined according to the abovemethod. Specifically, FIG. 5 illustrates a scene-operation methodaccording to an embodiment of the disclosure, and the scene-operationmethod is applied to a smart device system. In an implementation, theexecution subject of the method may be an electronic device in the smartdevice system. Specifically, as shown in FIG. 5, the method includes:S501 to S508.

S501: acquiring a plurality of scenes corresponding to a scene-triggercondition.

S502: searching, from the plurality of scenes, at least one scene with auser-set priority as a first scene set.

After acquiring the plurality of scenes corresponding to the currentscene-trigger condition, the electronic device finds whether there is atleast one scene with a user-set priority in the plurality of scenes, ifso, the electronic device acquires the at least one scene with auser-set priority, and the corresponding at least one priority.

In an implementation, when the device accesses the network, the usersets a priority for the scene corresponding to the device, ascene-trigger condition corresponding to the scene is also set. Forexample, the user has set a plurality of scenes for arriving home, andset the priorities for several of them, so that in any situation, theseveral scenes set by the user is always executed according to the setpriorities in the plurality of scenes triggered by arriving home.

In another implementation, after determining the plurality of scenescorresponding to the current scene-trigger condition, that is, beforeacquiring the priority of each scene, the electronic device displaysscene information corresponding to each scene, and acquires the user-setpriority, set by a user based on the displayed scene information, of theat least one scene. Specifically, the scenes are displayed, and theuser-set priority set by a user according to the displayed scenes areacquired. Specifically, the electronic device may acquire thedescription information of the scenes corresponding to respectivescenes. The description information of the scene may be pre-stored inthe electronic device and used to describe functions and a series ofoperations of the scene. As shown in FIG. 6, the scene priority settinginterface is displayed in the designated interface of the client of theelectronic device. The scene priority setting interface may be a promptwindow in which the identifier of each scene and the descriptioninformation corresponding to each scene are displayed. Each sceneidentifier corresponds to a setting button, the setting button cancorrespond to a drop-down menu, and the drop-down menu corresponds tomultiple priority identifier. The user can click on the drop-down menuand to select an identifier from the displayed multiple priorityidentifiers.

In addition, the drop-down menu may not be displayed and replaced by aselection button. The user selects scene identifiers in a certain orderon the priority setting interface, and then the electronic device canrecord the selection order of the user, and set priorities for the useraccording to the order.

In the plurality of scenes corresponding to the current scene-triggercondition, after the at least one scene with a user-set priority isfound, the found at least one scene is regarded as the first scene set.For example, the plurality of scenes corresponding to the currentscene-trigger condition are scene A, scene B, scene C, scene D and sceneE, and the at least one scene with a user-set priority includes scene Aand scene B, then the first scene set includes scene A and scene B.

S503: taking, from the plurality of scenes, other scenes outside thefirst scene set as a second scene set.

For example, for scene A, scene B, scene C, scene D and scene Ementioned above, the at least one scene with a user-set priorityincludes scene A and scene B, then the first scene set includes scene Aand scene B, and the second scene set includes scene C, scene D andscene E.

S504: acquiring preset operation instructions of each smart device ineach scene in the second scene set.

S505: acquiring, under the scene-trigger condition, historical operationdata of each smart device in each scene in the second scene set.

S506: determining the priority of each scene in the second scene setaccording to the historical operation data and the preset operationinstructions of each smart device.

For setting the priorities of multiple scenes in the second scene set,reference may be made to the specific implementations of S402 to S404mentioned above, which will not be repeated here.

The priority of each scene in the first scene set is greater than thepriority of each scene in the second scene set. In other words, thepriorities set by the user are higher than the priorities determined byhistorical operation data, thereby better improving the user experience.For example, as mentioned above, first scene set includes scene A andscene B, and the second scene set includes scene C, scene D and scene E.The user has set the priority of scene A to be greater than that ofscene B, and by comparing the historical operation data of scene C,scene D and scene E in the current scene-trigger condition, thepriorities of the three scenes are determined as scene D, scene C andscene E in descending order. The priorities of scene A and scene B aregreater than the priorities of scene C, scene D and scene E, then thepriority order of all scenes is obtained as: scene A>scene B>sceneD>scene C>scene E.

S507: sorting the plurality of scenes according to the priority of eachscene, and obtaining an execution sequence for the plurality of scenes.

S508: executing the plurality of scenes sequentially according to theexecution sequence.

For parts that are not described in detail in the above steps, referencemay be made to the foregoing embodiments, and details are not repeatedherein.

In addition, considering that some scenes may not need to be executed,executing those scenes wastes resources, FIG. 7 illustrates ascene-operation method according to an embodiment of the disclosure, andthe scene-operation method is applied to a smart device system. In animplementation, the execution subject of the method may be an electronicdevice in the smart device system. Specifically, as shown in FIG. 7, themethod includes: S701 to S705.

S701: acquiring a plurality of scenes corresponding to a scene-triggercondition.

S702: acquiring a priority of each scene of the plurality of scenes.

S703: sorting the plurality of scenes according to the priority of eachscene, and obtaining an execution sequence for the plurality of scenes.

S704: finding at least one scene with an order in the execution sequencemeeting a preset standard as at least one forbidden scene.

Specifically, the preset standard is a standard set by the useraccording to requirements, so that scenes that meet the preset standardcan be screened out from the plurality of scenes. Specifically, thepreset standard may correspond to the current scene-trigger condition,and the preset standard may be set according to the operationinstructions in the scenes. For example, if the user does not like tooperate the curtain under the scene-trigger condition of arriving home,the preset standard may be a scene that includes the operation of thecurtain. That is, in the plurality of scenes, at least one sceneincluding the operation of the curtain is regarded as the at least oneforbidden scene.

In addition, the at least one forbidden scene may also be set accordingto the execution sequence of the scenes. Specifically, at least onescene ranked in a certain interval of the execution sequence may beregarded as the at least one forbidden scene. In an implementation, thelast N scenes in the execution sequence are regarded as the at least oneforbidden scene, where N is a positive integer greater than 1. Thelower-ranked scenes can represent scenes that are not so urgent inexecution. For example, the higher the priority of the scene, the higherthe order of the scene in the execution sequence, the lower the order ofthe scene in the execution sequence, the lower the priority of thescene, and the lower priority indicates that the execution of the sceneis not urgent enough, so it may not be executed.

In addition, the priority of the scene is determined according to thesimilarity, as mentioned above. The higher the similarity, the higherthe priority of the scene, and the higher the priority of the scene, thehigher the order of the scene in the execution sequence. Therefore, thedetermined similarities of the last N scenes in execution sequence arerelatively low, that is, the last N scenes in the execution sequence areeven less similar to the historical operation data of the user in thecurrent scene-trigger condition, that is, less matched with the useroperation behavior, it means that the user is not interested in thecontent of the scene, and it may not be executed.

S705: executing, according to the execution sequence, scenes other thanthe at least one forbidden scene in the plurality of scenessequentially.

The determined at least one forbidden scene is not executed, and scenesother than the at least one forbidden scene are executed, thereby savingresources and better meeting the needs of the user.

For parts that are not described in detail in the above steps, referencemay be made to the foregoing embodiments, and details are not repeatedherein.

In addition, considering that the same operation may be included in theplurality of scenes, deduplication may be performed on respectiveoperations in the scenes to avoid repeated execution of the operation.FIG. 8 illustrates a scene-operation method according to an embodimentof the disclosure, and the scene-operation method is applied to a smartdevice system. In an implementation, the execution subject of the methodmay be an electronic device in the smart device system. Specifically, asshown in FIG. 8, the method includes: S801 to S807.

S801: acquiring a plurality of scenes corresponding to a scene-triggercondition.

S802: acquiring a priority of each scene of the plurality of scenes.

S803: acquiring target preset operation instructions of each smartdevice in a target scene, the target scene being one of the plurality ofscenes.

In an implementation, the plurality of scenes may be sorted to obtainthe deduplication order of the plurality of scenes, and then thededuplication operation is performed on the plurality of scenessequentially according to the deduplication order. The target scene maybe a scene acquired sequentially according to the deduplication order.For example, the plurality of scenes are scene A, scene B, scene C,scene D and scene E, and the determined deduplication order is: sceneA>scene B>scene D>scene C>scene E. It should be noted that thededuplication order may be the same as the priority order of the scenes,that is, the higher the priority of the scene, the higher the order ofthe scene in the deduplication order. Then the target scenes aresequentially determined as: scene A, scene B, scene D, scene C and sceneE.

Then, each preset operation instruction in the target scene is acquiredas the target preset operation instruction. The preset operationinstruction is an operation instruction preset for the scene, but theoperation instruction may not be executed yet this time.

S804: selecting at least one scene to be processed from the plurality ofscenes according to the priority of the target scene.

The purpose of setting priorities is to enable the scenes to be executedaccording to the set priorities, that is, if a certain operationinstruction has been executed in a previously executed scene, it is notnecessary to execute this operation instruction in subsequently executedscenes. Therefore, it is necessary to select the at least one scene tobe processed from the plurality of scenes according to the currentlydetermined target scene and the priority of the target scene.

In an implementation, at least one scene with priority lower than thepriority of the target scene may be used as the at least one scene to beprocessed, or at least one scene with priority higher than the priorityof the target scene may be used as the at least one scene to beprocessed. Specifically, the implementation of determining at least onescene to be processed may be related to the execution sequence for theplurality of scenes, if the execution sequence for the scenes is that:the higher the priority of the scene, the higher the order of the scenein the execution sequence, then at least one scene with priority lowerthan the priority of the target scene in the plurality of scenes isregarded as the at least one scene to be processed. If the executionsequence of the scenes is that: the lower the priority of the scene, thehigher the order of the scene in the execution sequence, then at leastone scene with priority higher than the priority of the target scene inthe plurality of scenes is regarded as the at least one scene to beprocessed.

In the embodiment of the disclosure, the implementation of selecting atleast one scene to be processed from the plurality of scenes accordingto the priority of the target scene may be: taking, in the plurality ofscenes, at least one scene with priority lower than the priority of thetarget scene as the at least one scene to be processed.

For example, for scene A, scene B, scene C, scene D and scene E, thepriority order is determined as: scene A>scene B>scene D>scene C>sceneE, if the current target scene is scene A, the determined at least onescene to be processed includes scene B, scene C, scene D and scene E.

S805: deleting preset operation instructions matched with the targetpreset operation instructions in the at least one scene to be processed.

The matching method of matching all target preset operation instructionsin the target scene with each preset operation instruction in the atleast one scene to be processed may be: taking the operationinstructions, with the identifiers of corresponding smart devices to besame, as the matched operation instructions. It may also be that theoperation instructions executed at the same time are regarded as thematched operation instructions.

In the embodiment of the disclosure, the specific implementation ofdeleting preset operation instructions matched with the target presetoperation instructions in the at least one scene to be processed may be:taking, in the at least one scene to be processed, an operationinstruction corresponding to a smart device the same with one of thetarget preset operation instructions corresponds to as an operationinstruction to be deleted; and deleting the operation instruction to bedeleted in the at least one scene to be processed.

Taking scene A, scene B, scene C, scene D and scene E mentioned above asan example, the target scene is scene A, the at least one scene to beprocessed includes scene B, scene C, scene D and scene E. Assuming thatscene A includes operation 1 and operation 2, and scene B includesoperation 3 and operation 4, the smart device corresponding to operation1 and operation 3 is an air conditioner, the device corresponding tooperation 2 is a TV, and the device corresponding to operation 4 is awashing machine, then operation 3 is deleted from scene B, and theoperation corresponding to scene B becomes operation 4, that is, theredundant operation is deleted.

In addition, if two operation instructions correspond to the same smartdevice, but the corresponding operation parameters are different, thenboth operation instructions can be executed. For example, operation 1corresponds to an air conditioner, and includes turning on the heatingmode of the air conditioner and setting the temperature to 30°,operation 3 also corresponds to the air conditioner, and includesturning on the heating mode of the air conditioner and setting thetemperature to 26°, the parameter information corresponding to operation1 and operation 3 are different, it is possible to perform bothoperations. Therefore, the specific implementation of deleting presetoperation instructions matched with the target preset operationinstructions in the at least one scene to be processed may be: taking,in the at least one scene to be processed, an operation instructioncorresponding to a smart device the same with one of the target presetoperation instructions corresponds to as an operation instruction to bedeleted; and deleting the operation instruction to be deleted in the atleast one scene to be processed, in response to parameter information ofthe operation instruction to be deleted matching parameter informationof the corresponding one of the target preset operation instructions.

The meaning of parameter information of the operation instruction to bedeleted matching parameter information of the corresponding one of thetarget preset operation instructions may be that the parameterinformation of the operation instruction to be deleted is the same asthe parameter information of the target preset operation instruction, itmay also be that there is a certain difference between the parameterinformation of the operation instruction to be deleted and the parameterinformation of the target preset operation instruction, and thedifference is within a certain range. The specific implementation ofparameter information of the operation instruction to be deletedmatching parameter information of the corresponding one of the targetpreset operation instructions may be: a difference between the parameterinformation of the operation instruction to be deleted and the parameterinformation of the corresponding one of the target preset operationinstructions being less than a predetermined value.

The designated value can be set by the user according to requirements,or can be set according to the operated smart device. For example, asmentioned above, operation 1 in scene A corresponds to an airconditioner, and includes turning on the heating mode of the airconditioner and setting the temperature to 30°, operation 3 in scene Balso corresponds to the air conditioner, and includes turning on theheating mode of the air conditioner and setting the temperature to 26°.The parameter information corresponding to operation 1 is 30°, theparameter information corresponding to operation 3 is 26°. If thepredetermined value is set to 2°, since the difference between theparameter information of the two is 4°, that is, less than 2°, it can bedetermined that operation 1 and operation 3 are not matched with eachother.

Therefore, through the above operations, in subsequently executedscenes, the operation matched with the preset operation in a previouslyexecuted scene is no longer executed, which can save resources.

In addition, it should be noted that if all operation instructions in acertain scene are deleted, it may not be necessary to execute the scene,and the scene may be regarded as the forbidden scene as mentioned above.

S806: sorting the plurality of scenes according to the priority of eachscene, and obtaining an execution sequence for the plurality of scenes.

S807: executing the plurality of scenes sequentially according to theexecution sequence.

Therefore, by dynamically sorting the priorities the scenes according tothe historical records operated by the user and the historical states ofthe devices, the scene selection method of the user can be improved,scheduling conflicts in multiple scenes can be resolved, therebyachieving intelligentized scene scheduling. And the problem ofrepeatedly setting the status attribute of a device in multiple scenescan be avoided. For example, both scene A and scene B include theoperation of setting temperature of the air conditioner. If the priorityof scene B is lower than that of scene A, then the operation of settingtemperature in scene B can be discarded for optimization. The“intelligentized scene scheduling” refers to a prediction of userbehavior based on the historical record of operations that the usertends to perform on a device in the current external condition, so as todetermine the priorities of the scenes and achieve a more reasonableexecution rule.

For parts that are not described in detail in the above steps, referencemay be made to the foregoing embodiments, and details are not repeatedherein.

FIG. 9 illustrates a structural block diagram of a scene-operationapparatus according to an embodiment of the disclosure. The apparatusmay include: a first acquisition unit 901, a second acquisition unit902, a third acquisition unit 903, and an execution unit 904.

The first acquisition unit 901 is configured to acquire a plurality ofscenes corresponding to a scene- trigger condition.

The second acquisition unit 902 is configured to acquire a priority ofeach scene of the plurality of scenes.

In an implementation, as shown in FIG. 10, the second acquisition unit902 includes: a first determination subunit 9021, a second determinationsubunit 9022, and a third determination subunit 9023.

The first determination subunit 9021 is configured to acquire, in theplurality of scenes, preset operation instructions of each smart devicein each scene.

The second determination subunit 9022 is configured to acquirehistorical operation data of each smart device under the scene-triggercondition.

The third determination subunit 9023 is configured to determine thepriority of each scene according to the historical operation data andthe preset operation instructions of each smart device.

In another implementation, as shown in FIG. 11, the second acquisitionunit 902 may further include: a first selection subunit 9024 and asecond selection subunit 9025.

The first selection subunit 9024 is configured to search at least onescene with a user-set priority from the plurality of scenes as a firstscene set.

The second selection subunit 9025 is configured to take, from theplurality of scenes, other scenes outside the first scene set as asecond scene set.

The first determination subunit 9021 is further configured to acquirepreset operation instructions of each smart device in each scene in thesecond scene set.

The third determination subunit 9023 is further configured to: acquirean operation scheme of a user on each smart device under thescene-trigger condition, according to the historical operation data ofeach smart device; match the operation scheme with the preset operationinstructions of each smart device in each scene, and obtain similaritybetween each scene and the operation scheme; and determine the priorityof each scene according to the similarity of each scene.

The apparatus further includes a priority setting unit. The prioritysetting unit is configured to: display scene information correspondingto each scene; and acquire the user-set priority, set by a user based onthe displayed scene information, of the at least one scene.

The third acquisition unit 903 is configured to sort the plurality ofscenes according to the priority of each scene and obtain an executionsequence for the plurality of scenes.

The execution unit 904 is configured to execute the plurality of scenessequentially according to the execution sequence.

The apparatus also includes a forbidden unit.

The forbidden unit is configured to: find at least one scene with anorder in the execution sequence meeting a preset standard as at leastone forbidden scene; and execute, according to the execution sequence,scenes other than the at least one forbidden scene in the plurality ofscenes sequentially. Specifically, the last N scenes in the executionsequence are regarded as the at least one forbidden scene, N is apositive integer greater than 1.

The apparatus also includes a deduplication unit.

The deduplication unit is configured to: acquire target preset operationinstructions of each smart device in a target scene, the target scenebeing one of the plurality of scenes; select at least one scene to beprocessed from the plurality of scenes according to the priority of thetarget scene; and delete preset operation instructions matched with thetarget preset operation instructions in the at least one scene to beprocessed. Specifically, at least one scene with priority lower than thepriority of the target scene in the plurality of scenes is regarded asthe at least one scene to be processed. The specifical implementation ofdeleting preset operation instructions matched with the target presetoperation instructions in the at least one scene to be processed is:taking, in the at least one scene to be processed, an operationinstruction corresponding to a smart device the same with one of thetarget preset operation instructions corresponds to as an operationinstruction to be deleted; and deleting the operation instruction to bedeleted in the at least one scene to be processed, in response toparameter information of the operation instruction to be deletedmatching parameter information of the corresponding one of the targetpreset operation instructions. Wherein parameter information of theoperation instruction to be deleted matching parameter information ofthe corresponding one of the target preset operation instructions isthat the difference between the parameter information of the operationinstruction to be deleted and the parameter information of thecorresponding one of the target preset operation instructions is lessthan a predetermined value.

Those of ordinary skill in the art can clearly understand that, for theconvenience and conciseness of the description, the specific workingprocess of the apparatus and module described above can refer to thecorresponding process in the foregoing method embodiment, which will notbe repeated here.

In the several embodiments provided in the disclosure, the coupling ofmodules may be electrical coupling, mechanical coupling, or other formsof coupling.

In addition, the functional modules in the various embodiments of thedisclosure may be integrated to one processing module, or each modulemay exist alone physically, or two or more modules may be integratedinto one module. The integrated module can be implemented in the form ofhardware or software functional module.

FIG. 12 illustrates a structural block diagram of an electronic deviceaccording to an embodiment of the disclosure. The electronic device 100may be an electronic device capable of running application programs,such as a smart phone, a tablet computer, or an e-book. The electronicdevice 100 in the disclosure may include one or more of the followingcomponents: a processor 110, a memory 120, and one or more applicationprograms. The one or more application programs may be stored in thememory 120, and one or more application programs, when executed by theone or more processors 110, are configured to implement the method inthe above method embodiment.

The processor 110 may include one or more processing cores. Theprocessor 110 uses various interfaces and lines to connect various partsof the entire electronic device 100, and executes various functions ofthe electronic device 100 and processes data, by running or executingthe instructions, programs, code sets, or instruction sets stored in thememory 120 and calling data stored in the memory 120. Optionally, theprocessor 110 may be implemented in at least one hardware form ofdigital signal processing (DSP), field-programmable gate array (FPGA),and programmable logic array (PLA). The processor 110 may be integratedwith one or more of a central processing unit (CPU), a graphicsprocessing unit (GPU), and a modem. The CPU mainly processes theoperating system, user interface, and application programs. The GPU isconfigured for rendering and drawing of display content. The modem isconfigured for processing wireless communication. It can be understoodthat the modem may also not be integrated into the processor 110, but beimplemented by a communication chip alone.

The memory 120 may include a random-access memory (RAM), and may alsoinclude a read-only memory (ROM). The memory 120 may be configured tostore instructions, programs, codes, code sets, or instruction sets. Thememory 120 may include a program storage area and a data storage area.The program storage area may store instructions for implementing theoperating system, instructions for implementing at least one function(such as touch function, sound playback function, image playbackfunction, etc.), and instructions for implementing the above methodembodiments, etc. The data storage area may store data created by theelectronic device 100 during use (such as address book, audio and videodata, and chat record data).

FIG. 13 illustrates a structural block diagram of a non-transitorycomputer readable storage medium according to an embodiment of thedisclosure. The computer readable medium 1300 stores program codeswhich, when called by a processor, cause the processor to perform themethod in the above method embodiment.

The computer readable storage medium 1300 may be an electronic memorysuch as flash memory, Electrically Erasable Programmable Read OnlyMemory (EEPROM), EPROM, hard disk, or ROM. Optionally, the computerreadable storage medium 1300 includes a non-transitory computer readablestorage medium. The computer readable storage medium 1300 has storagespace for the program codes 1310 configured for implementing any methodsteps in the above methods. These program codes can be read from orwritten into one or more computer program products. The program codes1310 may be compressed in an appropriate form.

It should be noted that the above embodiments are only used toillustrate the technical solutions of the disclosure, but not intendedto limit the disclosure. Although the disclosure has been described indetail with reference to the foregoing embodiments, it should understandthat those of ordinary skill in the art can still modify the technicalsolutions recorded in the foregoing embodiments, or equivalently replacesome of the technical features. These modifications or replacements donot make the essence of the corresponding technical solutions deviatefrom the spirit and scope of the technical solutions of the embodimentsof the disclosure.

What is claimed is:
 1. A scene-operation method, comprising: acquiring aplurality of scenes corresponding to a scene-trigger condition;acquiring a priority of each scene of the plurality of scenes; sortingthe plurality of scenes according to the priority of each scene, andobtaining an execution sequence for the plurality of scenes; andexecuting the plurality of scenes according to the execution sequence.2. The method as claimed in claim 1, wherein the acquiring a priority ofeach scene of the plurality of scenes comprises: acquiring presetoperation instructions of each smart device in each scene; acquiringhistorical operation data of each smart device under the scene-triggercondition; and determining the priority of each scene according to thehistorical operation data and the preset operation instructions of eachsmart device.
 3. The method as claimed in claim 1, wherein the acquiringa priority of each scene of the plurality of scenes comprises: searchinga scene with a user-set priority as a first scene set; taking a sceneoutside the first scene set as a second scene set; acquiring presetoperation instructions of each smart device in each scene in the secondscene set; acquiring, under the scene-trigger condition, historicaloperation data of each smart device in each scene in the second sceneset; and determining the priority of each scene in the second scene setaccording to the historical operation data and the preset operationinstructions of each smart device, wherein the priority of each scene inthe first scene set is greater than the priority of each scene in thesecond scene set.
 4. The method as claimed in claim 3, furthercomprising: before acquiring a priority of each scene of the pluralityof scenes, displaying scene information corresponding to each scene; andacquiring the user-set priority based on the displayed sceneinformation.
 5. The method as claimed in claim 2, wherein thedetermining the priority of each scene according to the historicaloperation data and the preset operation instructions of each smartdevice comprises: acquiring an operation scheme of a user on each smartdevice under the scene-trigger condition according to the historicaloperation data of each smart device; matching the operation scheme withthe preset operation instructions of each smart device in each scene,and obtaining similarity between each scene and the operation scheme;and determining the priority of each scene according to the similarityof each scene.
 6. The method as claimed in claim 5, wherein the higherthe similarity, the higher the priority of the scene.
 7. The method asclaimed in claim 1, wherein the executing the plurality of scenesaccording to the execution sequence comprises: finding a scene with anorder in the execution sequence meeting a preset standard as a forbiddenscene; and executing a scene other than the forbidden scene in theplurality of scenes.
 8. The method as claimed in claim 7, wherein thefinding a scene with an order in the execution sequence meeting a presetstandard as a forbidden scene comprises: taking last N scenes in theexecution sequence as the forbidden scene, N being a positive integergreater than
 1. 9. The method as claimed in claim 1, further comprising:before sorting the plurality of scenes according to the priority of eachscene, acquiring target preset operation instructions of each smartdevice in a target scene, the target scene being one of the plurality ofscenes; selecting a scene to be processed from the plurality of scenesaccording to the priority of the target scene; and deleting presetoperation instructions matched with the target preset operationinstructions in the scene to be processed.
 10. The method as claimed inclaim 9, wherein the selecting a scene to be processed from theplurality of scenes according to the priority of the target scenecomprises: taking a scene with priority lower than the priority of thetarget scene as the scene to be processed.
 11. The method as claimed inclaim 9, wherein the deleting preset operation instructions matched withthe target preset operation instructions in the scene to be processedcomprises: taking, in the scene to be processed, an operationinstruction corresponding to a smart device the same with one of thetarget preset operation instructions corresponds to as an operationinstruction to be deleted; and deleting the operation instruction to bedeleted in the scene to be processed, in response to parameterinformation of the operation instruction to be deleted matchingparameter information of the corresponding one of the target presetoperation instructions.
 12. The method as claimed in claim 11, whereinthe parameter information of the operation instruction to be deletedmatching parameter information of the corresponding one of the targetpreset operation instructions comprises: a difference between theparameter information of the operation instruction to be deleted and theparameter information of the corresponding one of the target presetoperation instructions being less than a predetermined value.
 13. Themethod as claimed in claim 1, wherein the higher the priority of thescene, the higher the order of the scene in the execution sequence. 14.An electronic device, comprising: one or more processors; a memory; andone or more application programs stored in the memory, wherein the oneor more application programs, when executed by the one or moreprocessors, are configured to implement: acquiring a plurality of scenescorresponding to a scene-trigger condition; acquiring a priority of eachscene of the plurality of scenes; sorting the plurality of scenesaccording to the priority of each scene, and obtaining an executionsequence for the plurality of scenes; finding a scene with an order inthe execution sequence meeting a preset standard as a forbidden scene;and executing a scene other than the forbidden scene in the plurality ofscenes according to the execution sequence.
 15. The electronic device asclaimed in claim 14, wherein the acquiring a priority of each scene ofthe plurality of scenes comprises: acquiring preset operationinstructions of each smart device in each scene; acquiring historicaloperation data of each smart device under the scene-trigger condition;and determining the priority of each scene according to the historicaloperation data and the preset operation instructions of each smartdevice.
 16. The electronic device as claimed in claim 14, wherein theacquiring a priority of each scene of the plurality of scenes comprises:searching a scene with a user-set priority as a first scene set; takinga scene outside the first scene set as a second scene set; acquiringpreset operation instructions of each smart device in each scene in thesecond scene set; acquiring, under the scene-trigger condition,historical operation data of each smart device in each scene in thesecond scene set; and determining the priority of each scene in thesecond scene set according to the historical operation data and thepreset operation instructions of each smart device, wherein the priorityof each scene in the first scene set is greater than the priority ofeach scene in the second scene set.
 17. The electronic device as claimedin claim 14, wherein the finding a scene with an order in the executionsequence meeting a preset standard as a forbidden scene comprises:taking last N scenes in the execution sequence as the forbidden scene, Nbeing a positive integer greater than
 1. 18. The electronic device asclaimed in claim 14, the one or more application programs, when executedby the one or more processors, are further configured to implement:before sorting the plurality of scenes according to the priority of eachscene, acquiring target preset operation instructions of each smartdevice in a target scene, the target scene being one of the plurality ofscenes; selecting a scene to be processed from the plurality of scenesaccording to the priority of the target scene; and deleting presetoperation instructions matched with the target preset operationinstructions in the scene to be processed.
 19. The electronic device asclaimed in claim 18, wherein the selecting a scene to be processed fromthe plurality of scenes according to the priority of the target scenecomprises: taking a scene with priority lower than the priority of thetarget scene as the scene to be processed.
 20. A non-transitory computerreadable medium storing program codes which, when called and executed bya processor, causes the processor to perform: acquiring a plurality ofscenes corresponding to a scene-trigger condition; displaying sceneinformation corresponding to each scene; acquiring a user-set prioritybased on the displayed scene information ; searching a scene with theuser-set priority as a first scene set; taking a scene outside the firstscene set as a second scene set; acquiring preset operation instructionsof each smart device in each scene in the second scene set; acquiring,under the scene-trigger condition, historical operation data of eachsmart device in each scene in the second scene set; determining thepriority of each scene in the second scene set according to thehistorical operation data and the preset operation instructions of eachsmart device, wherein the priority of each scene in the first scene setis greater than the priority of each scene in the second scene set;sorting the plurality of scenes according to the priority of each scene,and obtaining an execution sequence for the plurality of scenes; andexecuting the plurality of scenes according to the execution sequence.